#将评论文件存储为txt,便于做词云图
def save_comment(name:str,content:str):
    with open('D:\\Graduation-Project\\serve\\static\\comment\\'+ name + '.txt','w',encoding='utf-8') as f:
        try:
            f.write(content)
        except Exception as e: 
            #有些字符utf-8不能解析，需要替换
            f.write(content.encode('utf-8', 'replace').decode('utf-8'))